import { Component } from '@angular/core';

@Component({
  selector: 'app-my',
  templateUrl: './my.component.html',
  styleUrls: ['./my.component.scss']
})
export class MyComponent {
  My:any={
    name:'',
  }
  constructor(){
    this.getVideoDataFromFetch()
  }

  async getVideoDataFromFetch(){
    let response = await fetch("http://metapunk.cn:9999/parse/classes/zxc?limit=5", {
                "credentials": "omit",
                "headers": {
                    "X-Parse-Application-Id": "dev",
                },
                "method": "GET",
                "mode": "cors"
    })
    let data = await response.json()
    this.My = data.results; 
    }
}
